package com.experiment04.resource;
import com.experiment04.entity.Student;

import java.util.ArrayList;
import java.util.List;

public class DatabaseUtils {
    public static final List<Student> STUDENTS = create();
    private static List<Student> create(){
        Student s1 = new Student(1,"熊大",Student.Sex.MALE,2021);
        Student s2 = new Student(2,"熊二",Student.Sex.MALE,2021);
        Student s3 = new Student(3,"光头强",Student.Sex.MALE,2022);
        Student s4 = new Student(4,"翠花",Student.Sex.FEMALE,2022);
        Student s5 = new Student(5,"吉吉",Student.Sex.MALE,2023);
        Student s6 = new Student(6,"毛毛",Student.Sex.MALE,2023);
        List<Student> students = new ArrayList<>();
        students.add(s1);
        students.add(s2);
        students.add(s3);
        students.add(s4);
        students.add(s5);
        students.add(s6);
        return students;
    }

}
